package com.juyu.miliao.api.dao.mysql;

import com.juyu.miliao.api.domain.SanGuoGameActivity;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Auther: 卜加超
 * @Date: 2019/8/6 18:57
 * @Description:
 */
@Repository
public class SanGuoGameActivityDao {
    @Resource
    private SqlSession sqlSession;
    public List<SanGuoGameActivity> getSanGuoGameActivityList() {
        return sqlSession.selectList("getSanGuoGameActivityList");
    }

    public SanGuoGameActivity getSanGuoGameActivityById(int sanGuoActiveId) {
        return sqlSession.selectOne("getSanGuoGameActivityById",sanGuoActiveId);
    }
}
